import request from '@/util/network_request/request.ts'
/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
const apiMessage = {}
// 获取服务商消息列表
apiMessage.getNetworkOrderMessageList = (data) => request.globalRequest({url:`/mobile/network/order/getNetworkOrderMessageList`, method:'POST',data,power:2})
// 根据工单ID获取留言列表
apiMessage.getNetworkOrderMessage = (data,workId) => request.globalRequest({url:`/mobile/network/order/getNetworkOrderMessage/${workId}`, method:'POST',data,power:2})
// 保存服务商的工单留言
apiMessage.saveNetworkOrderMessage = (data) => request.globalRequest({url:`/mobile/network/order/saveNetworkOrderMessage`, method:'POST',data,power:2})
// 更新未读留言
apiMessage.updateNetworkOrderNotReadMessage = (workId) => request.globalRequest({url:`/mobile/network/order/updateNetworkOrderNotReadMessage/${workId}`, method:'put',power:2})

export default apiMessage